//
//  PublishView.h
//  talkDemo
//
//  Created by Reisen on 5/5/15.
//  Copyright (c) 2015 刘赞黄Telen. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
#import "FileUploader.h"

@protocol UploadViewDelete <NSObject>

@optional
- (void)uploadView_uploadedSuccess:(FileUploader*)uploader;
- (void)uploadView_uploadedFailed:(FileUploader*)uploader;

@end

@interface UploadView : UIView <UIAlertViewDelegate, FileUploaderDelegate>
{
    FileUploader* uploader;
}

@property(weak) UIViewController* superViewController;

@property(strong) IBOutlet UILabel* statusLabel;
@property(strong) IBOutlet UIProgressView* progressView;
@property(weak)id<UploadViewDelete> delegate;

-(id)initWithFrame:(CGRect)frame path:(NSString*)path username:(NSString*)username uId:(long long)uId;
@end
